#pragma once

#include <QObject>

#include "Base\AbstractRemoteProcedure.h"
#include "Network/Connection.h"

namespace TC
{
	namespace Request
	{
		class TCCORE_EXPORT NewsQuery : public AbstractRemoteProcedure
		{
			Q_OBJECT
				Q_PROPERTY(QVariantList news MEMBER news)
		public:
			Q_INVOKABLE void queryAll(quint64 groupId);
		protected:
			void onDataReady(QDataStream &stream) override;
		private:
			QVariantList news;
		};
	}
}